{% extends "base.html" %}

{% block content %}
  <div class="container-fluid p-4">
    <div class="d-flex justify-content-between align-items-center mb-4">
      <h5>订单管理</h5>
      <div>
        <button class="btn btn-secondary me-2">导出Excel</button>
        <button class="btn btn-primary">刷新数据</button>
      </div>
    </div>

    <!-- 订单表格 -->
    <div class="card border rounded-lg">
      <div class="table-responsive">
        <table class="table table-hover mb-0">
          <thead class="table-light">
          <tr>
            <th>订单号</th>
            <th>用户名</th>
            <th>产品名称</th>
            <th>订单金额</th>
            <th>下单时间</th>
            <th>订单状态</th>
            <th>操作</th>
          </tr>
          </thead>
          <tbody>
          <tr>
            <td>OD20240512001</td>
            <td>张三</td>
            <td>无线蓝牙耳机</td>
            <td>¥299</td>
            <td>2024-05-12 10:23</td>
            <td><span class="badge bg-success">已完成</span></td>
            <td>
              <button class="btn btn-sm btn-info">查看详情</button>
            </td>
          </tr>
          <tr>
            <td>OD20240512002</td>
            <td>李四</td>
            <td>智能手表</td>
            <td>¥599</td>
            <td>2024-05-12 14:56</td>
            <td><span class="badge bg-warning">配送中</span></td>
            <td>
              <button class="btn btn-sm btn-info">查看详情</button>
            </td>
          </tr>
          <tr>
            <td>OD20240512003</td>
            <td>王五</td>
            <td>便携式充电宝</td>
            <td>¥129</td>
            <td>2024-05-12 16:18</td>
            <td><span class="badge bg-secondary">待支付</span></td>
            <td>
              <button class="btn btn-sm btn-info">查看详情</button>
            </td>
          </tr>
          <!-- 更多订单数据... -->
          </tbody>
        </table>
      </div>
      <!-- 分页 -->
      <div class="p-3 border-top d-flex justify-content-end">
        <nav aria-label="Page navigation">
          <ul class="pagination mb-0">
            <li class="page-item disabled"><a class="page-link" href="#">上一页</a></li>
            <li class="page-item active"><a class="page-link" href="#">1</a></li>
            <li class="page-item"><a class="page-link" href="#">2</a></li>
            <li class="page-item"><a class="page-link" href="#">3</a></li>
            <li class="page-item"><a class="page-link" href="#">下一页</a></li>
          </ul>
        </nav>
      </div>
    </div>
  </div>
{% endblock %}